<template>
    <el-card shadow="never" style="height: 100%">
        <el-form style="width: 30%">
            <Password ref="passwordRef" v-model="form.password" />
        </el-form>

        <el-button type="primary" @click="() => passwordRef.validate()">验证密码</el-button>
    </el-card>
</template>

<script setup lang="ts">
import { reactive, ref } from "vue";
import Password from "@/components/password/index.vue";

const form = reactive({ password: "" });
const passwordRef = ref();
</script>

<style scoped></style>
